package com.hrma.services;

import com.github.pagehelper.Page;
import com.hrma.entity.Department;
import com.hrma.entity.DepartmentDTO;
import com.hrma.entity.Post;
import com.hrma.entity.SelectResult;

import java.util.List;

public interface DepartmentService {
    /**
     * 增加部门
     */
    Department addDepartment(Department data);

    /**
     * 删除部门
     */
    void deleteDepartment(int id);

    /**
     * 修改部门信息
     */
    void updateDepartment(Department data);

    /**
     * 下拉选择得到部门名字和id
     */
    List<SelectResult> selectDepartment();
    /**
     * 得到所有部门信息
     */
    Page<Department> getList(DepartmentDTO data);
}
